This variable was only used in the spin function, when declaring a new Spinner. Depending on the document you load it in, this could change, so you can better check it when initialising the instance, not when loading the code.