validate_has_elements function

Validates that vector has length greater than 0