<?php $quantity = '0'; var_export((bool) $quantity); echo PHP_EOL; $allowed = true and false; var_export($allowed); echo PHP_EOL;