check commandArray- lenght