I have this bivariate distribution and I would like to tell if it is in the exponential family: $$f(y_{i},d_{i}|\theta_{1}\,\theta_{2}\,p)=\left(\left(\frac{1}{\theta_{1}}\right)\exp\left(\frac{-y_{i}}{\theta_{1}}\right)\right)^{d_{i}}p^{d_{i}}\left(\left(\frac{1}{\theta_{2}}\right)\exp\left(\frac{-y_{i}}{\theta_{2}}\right)\right)^{1-d_{i}}(1-p)^{1-d_{i}}$$ with $p \in [0,1]; ~d_{i}\in\{0,1\}$ and $y_{i}\in(0,\infty).$
My claim is that this distribution is not a part of the exponential family because its support depends on the parameter $p.$ For example, if $p=0, $ then only pairs $(y_{i},0)$ are supported, but the solutions states that this distribution is an member of the exponential family. I am not sure where my misunderstanding is. Any explanation would be appreciated.