function toORM(arg) {
    /* eslint-disable no-underscore-dangle */
    if (arg instanceof ORM) {
        return arg;
    }
    if (arg instanceof SelectorSpec) {
        return arg._orm;
    }
    return false;
}
Tries to find ORM instance using the argument.
@private
@param {*} arg