command-info: check for hashtable before performing lookup