Extend validate_has_data
to accept vector input
#962
Merged
validate_has_data
to accept vector input
#962