Model::find() check if index exists

Currently I get an exception when I try to access an index of my model resultset which aren't exists. Nicely would be a warning here.

Whatever, what I need is a function which checks for me if the index exists. Is something like this already here?

Would be very nice.

edited Nov '15

Show us code. If you want just one object then you can use findFirst(). If you want to check it, then if findFirst dont exist then value will be false, you can check it before or write your own ::find/findFirst which will throw exception when it return false.