private static function _checkNonEmptyString($argName, $argValue) { if (empty($argValue) || !is_string($argValue)) { throw new WorkflowException("argument '{$argName}' must be a string"); } }