get_key checks if data is hash-like type or not