serverCommandsCommandGet('localhost', 'files', ['-m', '10', '//depot/...']); $hasDepotFiles = array_filter($command_response->getResults(), function($x) { return isset($x->depotFile); }); assert(!empty($hasDepotFiles));