getRequestAuthentication(); } catch ( Throwable $e ) { return false; } if ( ! $auth instanceof ApiKeyRequestAuthentication ) { return false; } return '' !== trim( $auth->getApiKey() ); } }