Remove useless argument from isEmpty

fixes #1566