added missing isDebug function