Minor refactor in function `stateToBool`
Minor refactor in function `stateToBool`

Co-authored-by: Cristhian Motoche <e8f5c0edb3ebeb9c3417b3c3a0b9f94746e24686@users.noreply.github.com>
stackbuilders/hapistrano