[master 3/12] Move parents checking and update into a seprarate methods