'A valid cask is either None or alphanumeric + backslashes.'

@classmethod
def valid_cask(cls, cask):

    if (cask is None):
        return True
    return (isinstance(cask, string_types) and (not cls.INVALID_CASK_REGEX.search(cask)))
