assert vs if check