changed isset reversed check logic