Check size of passed vector