one-line the if page check