I think it's best (most readable/intuitive) for 'hideOptionsView()' to be the first line of the function.