Name is a little misleading...it sounds like the function will toggle whether the search box is enabled, but it's really just checking whether it should be.