def allowed_file_models(filename: str) -> bool:
    """Check whether the type is allowed for a bpmn model file.

    :param filename: name of the file
    :return: True or False
    """
    return '.' in filename and \
           filename.rsplit('.', 1)[1].lower() in ['bpmn']