Fix rendering issue when rendered property is a boolean at false

There's a bug when the property to render is a boolean set to false. I guess the aim is to provide detection for non-existent properties, hence the 2nd check for 0 values. I propose to use `typeof` instead, which also removes the need for additional checks for false-equivalent values.