Add helper method to set property to non-empty list.

This avoids checking for empty lists every time.

Test: atest cargo_embargo.test
Change-Id: Ic634763974da5d8b2d6c3f091b4a85741c45e2b3
2 files changed