Better params check