Implement isLeft for base < 4.7

This will allow the project to build on GHC 7.6.3