def all_val(arr, val):
    """Check if all values in array have specific value

    Arguments:
        arr {np.array} -- 1D numpy array of ints
        val {int} -- value to check

    Returns:
        bool -- yes/no
    """
    for el in arr:
        if el != val:
            return False
    return True