Fixed 'def destroy' in posts_controller.rb to check for the existence of a post before calling its destroy method.
Fixed indentation of '@post.destroy' so it conforms to the rest of the file.