`coordinates` is already declared. Declare it once before the `if` statement.