Code check clean up

_form view template now checks that the @posts object is not empty