add functions in model template kiemTraTonTai & soSanhMa for checking integity more accurate. This is first init may be changed in future.