You don't need `else if (...)` here. Just `if (...)` will do.