Don't access vector if it is empty