I cannot get a false value to return here. A true value returns fine. What am I missing?
if ((count($this->_brokenRulesCollection)) == 0) {
return true;
} else {
return false;
}
In PHP, false
when converted to a string is an empty string, and true
converted to a string is "1".
Use var_dump
instead of echo
for debugging.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With