Fix custom param check method