Are you sure the assignment to $base is correct as $this->getNamespace() targeting ByTIC\Models\SmartProper...meTrait::getNamespace() seems to always return null.
This check looks for function or method calls that always return null and whose
return value is assigned to a variable.