Simplify is_encrypted function