public function apply($value) { $id = (int) $value; if (empty($id)) { return false; } $record = $this->table->get($id); if ($record instanceof RecordInterface) { return $id; } else { return false; } }