private function validateHash($firstHash, $secondHash)
    {
        // Empty hash will always return false, because they are no validatable
        if (empty($firstHash) || empty($secondHash)) {
            throw new InvalidArgumentException('FlysystemAssetStore::validateHash can not validate empty hashes');
        }
        // Return true if $firstHash start with $secondHash or if $secondHash starts with $firstHash
        return
            strpos($firstHash, $secondHash) === 0 ||
            strpos($secondHash, $firstHash) === 0;
    }