isset() added to prevent crashes