src/Compare.php
public static function identifiable($value): bool
    {
        return $value instanceof UrlRoutable ||
            is_string($value) ||
            is_int($value) ||
            self::hash($value);
    }
public static function identifiable($value): bool
    {
        return $value instanceof UrlRoutable ||
            is_string($value) ||
            is_int($value) ||
            self::hash($value);
    }
Does the value identify a resource?

@param $value
@return bool