Use array_key_exists instead of isset