firstWhere('app_key', $appKey); if (! $client) { return null; } return new Client( $client['app_id'], $client['app_key'], $client['app_secret'] ); } }