This can just be if ( ! isset ( $value ) ) - the extra null check is unneccesary isset ( null ) returns false