Validate that the item is present if it's required.

def _validate_required(self, item, name):
        """Validate that the item is present if it's required."""
        if self.required is True and item is None:
            raise ArgumentError(name, "This argument is required.")