Removing unnecessary check if dependedProperties.Name is null or empty. Consolidated return messages.