If you have a hasOperations() method, you should throw a NoSuchViewException instead of returning null