renamed inArray to getInArray for better meaning