Add ifnone param to detect to handle missing branch
Merge pull request #6 from alexcruice/missing-branch

Add ifnone param to detect to handle missing branch