diff --git a/flextype/Entries.php b/flextype/Entries.php index f1626f34..b64ae20c 100755 --- a/flextype/Entries.php +++ b/flextype/Entries.php @@ -281,4 +281,15 @@ class Entries return $_entry; } } + + /** + * Check whether entry exists. + * + * @param string $entry Entry to find + * @return bool + */ + public static function has(string $entry) : bool + { + return Filesystem::has(PATH['entries'] . '/' . $entry . '/entry.html'); + } }