Why is it necessary to check is_array($var)? Can you do without it?