- A better way to check for valid data