Ignore NULL in $params
Updated documentation