Fixed typo.
Clarified isEmpty check.