Added func to check if user exists

Added func which checks if user exists, it is to return a boolean value
of true of false. It accepts an argument where it checks for via the
user id