Skipping addObjectResource() calls if PHP < 5.3