Should probably nest the `if` block to make it look cleaner.