Simplify and rename allInArray