refactored to use _.result for check