Why testing both $name and $requestName ? I think $requestName is enough (and fix the CS please, it's elseif, not else if :).