Removed not needed if statement since a NULL on the parameter is ignored by the API anyway.