use exists? for page existence checking instead of find_by != nil