You can use `function_exported?(repository, :priv, 0)`.