Avoid matching empty hashes