Better branch check