I\'ve seen a lot of people do the former, is there any performance benefit doing one vs the other? Or is it just an eye candy? I personally use the latter every time as it i
$array = array( 'foo' => null ); echo (int)!empty($array['foo']); // 0 echo (int)array_key_exists('foo', $array); // 1