isLeftInstanceOfRight placed in separate file.