added a helper to conditionalize the user check object