the `if` statement doesn't seem necessary to me here. if `flash` doesn't have a value at `key`, it'll give you `nil` which won't output anything within the `<%= %>`.