validate_has_data function

Validate that dataset has a minimum number of observations