Add check for empty parameter lists.

`foo = () ->` can be written more simply as `foo = ->`.