nonnegative function

Safely check whether x is less than zero