block_device_info_get_mapping will return [] or a list of block devices. There is no need to check the size of the array. Change-Id: Id07c9a79e5144f8199b4092febb0e1e5f41096d2