Fix return with regexp match which returns nil or Integer and not boolean