What this method do is sort of similar to the other method you introduced in JS - "isPageEligible". Maybe that could by unified somehow.