Use negative instead of isNegative. Thanks for suggestion.
I leave out if..else construction because is more readable.