/**
  * @param $bit
  * @param $printerCodePage
  * @return bool
  * @throws \Epl\ExceptionCommand
  */
 protected function isValidPrinterCodePage($bit, $printerCodePage)
 {
     foreach ($this->availablePrinterCodePage[$bit] as $code) {
         if ($code === (string) $printerCodePage) {
             return true;
         }
     }
     throw ExceptionCommand::invalidPrinterCodePage($bit, $printerCodePage);
 }