Remove ambiguous comparison

Returns a string if everything works fine, the default value is a
boolean though.