What about :
~~~php
$type = filter_input( INPUT_GET,  self::FEED_TYPE_QUERY_VAR );
~~~

or do we even need the $type variable at all? 

~~~php
if ( 'json' ===  filter_input( INPUT_GET,  self::FEED_TYPE_QUERY_VAR ) ) { ... }
~~~