Also I don't like this line, I'd split it to two lines, `$params = ...` and `if ($params === NULL) {`