if (in_array(null, $array, true) || in_array('', $array, true)) { // There are null (or empty) values. }