import re


def check_community(name) -> bool:
    """Perform basic validation on community name"""
    if (name and isinstance(name, str) and len(name) > 5 and name[:5] == 'hive-'
            and name[5] in ['1', '2', '3'] and re.match(r'^hive-[123]\d{4,6}$', name)):
        return True
    return False