Since you're returning true : false, you can eliminate the ?: altogether, e.g.:

  return $sections == $this->getCompletedSections( $sections )