protected function isReturncodeValid(int $code): bool {
    	try {
        	$reflection = new \ReflectionClass('\\' . __NAMESPACE__ . '\\interfaces\\NagiosCodes');
        	return in_array($code, $reflection->getConstants());
		} catch (\ReflectionException $exception) {
    		return false;
		}
    }