Fix your spacing. Should be:

```java
isCancelled() {
```