Hardening. Check data before using it