Check if the current branch is an orphan
An orphan branch is one named from HEAD but which doesn't exist in the refs namespace, because it doesn't have any commit to point to.
1 if the current branch is an orphan, 0 if it's not; error code if therewas an error