CW: Included handling of empty page