Yes, you're right, although no role apps are a high percentage (aprox. 80%) of the total number of apps and the if statement is faster than performing indexOf always thought