Shortened if statement in non_duplicated_array into one line