Minor Change

Turning a method returning boolean if(something) into a single line.
Merge pull request #186 from magnusulf/patch-1

Minor Change