If !empty() is removed, it will show "Undefined index: hideOverlay ..."