Wrapper Functions for single page or gallery page check