[FEATURE] better check for valid input data (NaN, ....)