I want a 0 to be considered as an integer and a \'0\' to be considered as a string but empty() considers the \'0\' as a string in the example below,
$var = \
if ( (is_array($var) && empty($var)) || strlen($var) === 0 ) { echo $var . ' is empty'; }