Added methods to check page (used for active links and body classes)

Added methods to check page (used for active links and body classes)