In order to check if an input field is empty or has any value, will the following both methods work in same way? Or is any of them better than other?
if ($options['url']) {
..
}
Or
if ( isset ($options['url']) && ($options['url']!="") ) {
..
}