You are right, well spotted! I'll fix that with an empty() check.