empty() instead of strlen