Replace deprecated method has_next? with last_page?