Condition for a direct sum

Suppose U1,,UmU_1,\dots,U_m are subspaces of VV. Then U1++UmU_1 + \dots + U_m is a direct sum if and only if the only way to write 00 as a sum u1++umu_1 + \dots + u_m where each ujUju_j \in U_j is by taking each uj=0u_j = 0.