public static function notEmpty($parameter, $name = 'unknown')
{
if (is_null($parameter)) {
throw new \Exception("Please provide a value for the parameter '{$name}'.");
} else {
if (is_string($parameter) && trim($parameter) == '') {
throw new \Exception("Please provide a none empty value for the parameter '{$name}'.");
}
}
}