Adding defensive programming utilities
Problem with type checking (instanceof problem)