Cleverer checking for no length property or 0-length