Added isReturned method
Marked off function auto return