Renamed empty? method to has_elements? on Library