sort of working!

if elements.get(word) is True doesn't work, but if elements.get(word)
does work