You could use the shorter

```java
   return response != null ? getResponseDataNoError(response, false) : null;
```