Fix: required parameters comparison

Comparing given and required parameters causes an issue when working
with PDO.