Fix a typing error.
Use the isEmpty() method temporary.

It will reduce the number of tests but it will avoid false-positives.