Either syntax is correct, it's a private function, so there's no reason to declare it as a variable.