Whether a Pod item exists or not when using fetch() or construct with an ID or slug.
Function Definition
public function exists ()
Source File: /pods/classes/Pods.php
Since: 2.0
Returns
(bool) Whether a Pod item exists or not.
Examples
Check if the item exists
<?php
$slug = 'my-item-slug';
$pod = pods( 'your_pod', $slug );
if ( $pod->exists() ) {
// the item exists
}
else {
// the item does not exist
}