add a space after if, and wrap return true in curly braces. i.e.

    if (row == null) {
      return true
    }