Replace assertions involving calls to empty() with assertEmpty()/assertNotEmpty()/assertArrayNotHasKey()

Issue #3135483 on drupal.org by mero.S.

Proposed resolution

For example:

-    $this->assertTrue(!empty($elements)
+    $this->assertNotEmpty($elements);