check for empty, and check for single