# algo_027 ### Problem Statement > Write an algorithm to check is the stack is empty or not. ## Algorithm ``` procedure isEmpty(top) begin if(top = -1) return true; else return false; endif end procedure ```