Automatically detect React Native platform and rewrite API URLs for local development
Method created for creating conditional method chains. Also can be used with block only (no arguments). In this case method returns result of calling block on self or itself (if block returns nil or false).