def is_valid_name(name):
    """Returns True if name is a valid package name, else False."""
    if name != name.strip():
        # Reject names with leading/trailing whitespace
        return False

    if name in ("package", "packages"):
        return False

    return True