safer code for search_field_disabled