function has_album_id() { if (!$this->upload['album_id'] || 'undefined' === $this->upload['album_id']) { return false; } return true; }