If is not necessary cause each will not iterate over empty array