/** * Check if can use dialog */ public function __construct() { if (Controller::isAvailable() === false) { throw new \ErrorException('Could not find package "whiptail"'); } }