Removing superfluous php end tags