[INTERNAL] check for empty vectors