Convenience functions for working with Result