Added check for boolean in dictionary.js