inverted if condition for viewPaths.