Implemented validation strategy for nil checking