Can any body please let me know,how to find whether a folder exists with partic

Can any body please let me know,how to find whether a folder exists with particular id or not ?
My requirement is to find whether a particular folder with id is deleted or not.When ever i am passing integer (id of deleted folder) to rules which accepts a folder ID as input they are returning exception.So how to find whether it exists or not.
Thanks in advance...

OriginalPostID-91772

OriginalPostID-91772

  Discussion posts and replies are publicly visible