Changed check of optional parameter in requirement