You could use the return value of `toggleSearchEnabled()` here like you do above.