check for nil page