Changed printing true/false to return true/false