use `==` for vector size check