adding isDeclared function to strict.lua