isGroup() method written, working on isRun()