improved jsdoc of commandExists function in generalCommands