When validating data, I\'ve gotten into a habit of doing the following:
Note: I don\'t really have individual booleans for each check. This is just
It depends - if you are expecting the data to be there and NOT having the data is unexpected, then throwing an exception is OK. Throwing an exception is very expensive (slow) but is the best way to handle unexpected circumstances.