fixes #3839 added helper for boolean attributes