Cleaned up & updated as per the request of @parndt.
Change empty check to nil check.
Fixed logic for custom backend checking.
Switched Core config check from nil to empty. (third time's the charm)