Added is.empty and is.bad