bugfix on 'requires' function : if param is nil no test on empty