Using empty instead of array_key_exists

For all databases, not MySql only.
Merge pull request #130 from olegabr/feature-DbSpeedImprovement

Using empty instead of array_key_exists