Added Is Empty function to flow, will help with further coding