is_head function

Check if branch is head