Refactored get child by id