variable widget check, thanks to Lua