A PHP port of Rack::TryStatic