Proper check for empty folder