Test for heroku-postgresql addon before copying pg data

Test to see if heroku-postgresql addon is enabled on the source app before trying to copy pg data to the new forked app.
could you remove the space after the first square brackets and before the last one please?