'A valid package is either None or alphanumeric.'

@classmethod
def valid_package(cls, package):

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