changing empty to blank to make API more robust

checking if parameter is "empty?" on nil will raise exception, when "blank" will return true and raise the intended exception ( e.g. "raise ArgumentError").