fix isEmpty check

Task-number: QBS-620
Change-Id: I86d220d10b6158db63e2f81d92feaeada0dc86a0
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>