def find_duplicates_in_array(array):
    """Runs through the array and returns the elements that contain
    more than one duplicate

    Args:
        array: The array to check for duplicates.

    Returns:
        Array of the elements that are duplicates. Returns empty list if
        there are no duplicates.
    """
    duplicates = []
    non_duplicates = []
    if len(array) != len(set(array)):
        for item in array:
            if item not in non_duplicates:
                non_duplicates.append(item)
            elif item in non_duplicates and item not in duplicates:
                duplicates.append(item)
    return duplicates
