added present? method to validate data