All this does is earlier return. if $success is false it will skip the next if block anyway and then finaly return $success. All tests continue to pass.