Fix warning (un/signed); use !empty() instead of size()