**To Reproduce** [PR with failing tests](https://github.com/nextras/orm/pull/540) **Describe the bug** *testHasValueOrEmptyWithNull* - is ok in MySQL on 4.0.2, failing on master - is failing in array on 4.0.2 and master *testHasValueOrEmptyWithFunctions* - is failing in MySQL on 4.0.2 and master - is ok in array on 4.0.2 and master