Just a friendly tip: brackets here are not necessary, Lua will evaluate the and operator first.

In fact the or operator is always the last to be evaluated out of all operators in the language.