Refactoring the helpers pattern to always return nil when the content is invalid