Please use the short ternary expression: `return null === $item ?: (bool) $item`