[fix] do not cast to boolean