nit: `if (application)` ?