line not used
use isEmpty()

rather than size() > 0