def check_if_audio(filename):
    """
    check_if_audio - checks if a file is an audio file

    Parameters
    ----------
    filename : str, the name of the file to be checked

    Returns
    -------
    bool
    """
    return (
        filename.endswith(".wav")
        or filename.endswith(".mp3")
        or filename.endswith(".m4a")
    )