Removed a useless if
Fixes #43