/**
  * returns a PageProoferCode based on a given code
  *
  * @param string|null $code
  * @return bool|PageProoferCode
  */
 public static function get_by_code($code = null)
 {
     if ($code === null) {
         return false;
     }
     return PageProoferCode::get()->filter('Code', $code)->first();
 }
 /**
  * @return mixed
  */
 public static function get_page_proofer()
 {
     return PageProoferCode::get()->filterByCallback(function ($code) {
         return $code->getIsActiveCode();
     })->first();
 }