Custom content types whitelest in the REST API

If active, custom content types should be available via the REST API. The following patch adds them to the whitelist when each CPT is active.
Definitely a code style preference. I prefer and find early returns to be simpler and easier to read then longer nested statements. Is there a convention used in Jetpack for this?