function is_clickable() { $clickable = false; if ($this->repeatable) { $clickable = true; if ($this->undoable) { $clickable = true; } } else { if ($this->undoable) { $clickable = true; } } return $clickable; }