[cyril] use better function for point validation checking.