rollback lodash check with traditional check