function has_context() { if (isset($this->upload['context_id']) && !empty($this->upload['context_id'])) { return true; } return false; }