If last page attribute of collection is null, that means it is first page. This check is applied for add new row and paste row as well.
pgadmin-hackers by date:
Соглашаюсь с условиями обработки персональных данных