blink plugin

How could you write the `if`/`else` more succinctly?