Couldn't this be shortened to: `dfhack.matinfo.decode(item) or false`, or am I missing something? ;)