def findMatching(device, device_arr):
    """
    Check the array of devices to see if there is a matching element.

    Args:
        device (string): The name of the device attempting to be added.
        device_arr (array): An array of the devices attached to a profile.
    """
    matches = [x for x in device_arr if x == device]
    if matches != []:
        return True
    else:
        return False