We can probably just call activity.finish() before the if statement.