TypeError thrown

array_key_exists(): Argument #2 ($array) must be of type array, DuplicatorPro\Guzzle\Service\Resource\Model given