Improvement use empty instead of count > 0.