Added error for 0 branches