Make navIsActive function more concise (but less readable...)