There's an implicit cast here, better use empty().