Add some validation helpers to base model class.
PSR-2: Use spaces for indentation.