Implement findById and findOneById, use lodash for checking object types