Now that you are using a seperate variable do  you need to check the controller directly still or can this if statement be removed and changed to just a single variable_get?