Changing rake task to check if view exists before creating a new one