Checking if pageowner exists before using it.