replace spread element check by runtimes call