private function toBool($arg) { if ($arg === '0') { return false; } elseif ($arg === '1') { return true; } }