Only delete branch functon when it exists
Merge pull request #188 from alex-seville/master

Check for branch function before deleting.