Fixed the q() method to use same instead of isSet.