I know I can use:
casper.test.assertExists(#selector);
But I want to actually store if it exists in a boolean variable.
I.e. something like this:
var exists = SelectorExists(#selector);
I just found out:
if(!casper.exists('#selector')){
#selector doesn't exist
}