Here's the code sample:

```
$boolValue = ($a == $b) ? true : false;

```

When I'm trying the shorter way:

```
$boolValue = ($a == $b);

```

Its return either 1 or NULL.

Is there more elegant way to return bool?