Add Optional constraint to vector validation